package com.start.quartz.entity;

import com.alibaba.fastjson2.JSONObject;
import com.start.common.entity.StartBaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;


/**
 * 定时任务
 *
 * @author gxl
 * @email ${email}
 * @date 2021-01-04 11:00:51
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(name = "SysQuartzEntity")
public class StartBaseQuartzEntity extends StartBaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;


    /**
     * 定时任务名称
     */
    @Schema(name = "定时任务名称")
    private String name;
    @Schema(name = "唯一编码")
    private String code;

    @Schema(name = "组别")
    private String groupKey;

    /**
     * 类路径
     */
    @Schema(name = "类路径")
    private String classPath;


    /**
     * 启用状态 0未启用 1启用
     */
    @Schema(name = "启用状态 0未启用 1启用")
    private Integer isEnable;


    /**
     * 描述信息
     */
    @Schema(name = "描述信息")
    private String descrption;


    /**
     * cron 表达式
     */
    @Schema(name = "cron 表达式")
    private String cron;

    @Schema(name = "定时任务参数")
    private JSONObject contextMapData;

}
